home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000 #2
/
Ham Radio 2000 - Volume 2.iso
/
HAMV2
/
ANTENNA
/
RHOM112
/
STUB.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-07-29
|
3KB
|
60 lines
10 CLS
20 KEY OFF
30 LOCATE 2,35:PRINT"STUBS"
50 PRINT:PRINT STRING$(79,8)
55 PRINT
56 print"Taken from Dick Thwing's (K4EDE) collection of ham radio Basic programs."
57 print"Revised by O.C. Winton (WN1Z) July 1994 (P.O. Box 89, Big Sur CA 93920),"
58 print"and compiled with Microsoft QuickBasic 3.00, and boy did the program need"
59 print"revision! The velocity factor (Vel, i.e. 'VP' in the Basic program)"
60 print"appeared in the denominator in the original K4EDE version; it should"
61 print"appear in the numerator as it does here. For a practical example of"
62 print"how to use the velocity-factor in calculating stub lengths, see the"
63 print"article 'The 300-Ohm Ribbon J Antenna for 2 Meters: A Critical""
64 print"Analysis', by John S. Belrose (VE2CV), in the April 1982 QST."
65 print
66 print"According to Belrose, you start with the free-space wavelength by"
67 print"using the equation: lambda = (300/Fmhz)m = (984/Fmhz)ft. That is"
68 print"one wavelength. A halfwave in feet is then 492. [Thwing used 468"
69 print"which is the figure for the physical length of a halfwave antenna"
70 print"after K-factor, end effect, etc. is taken into account (see THE ARRL"
71 print"ANTENNA BOOK, 1984, page 2-dash-3), which is not appropriate for stubs.]"
72 print:input"to print this page, hit <PrtSc>; to continue, hit <cr>", dummy
73 cls:print:PRINT"THE LENGTH OF A STUB, USUALLY A QUARTER WAVE OR HALF WAVE, IS"
80 PRINT"DEPENDENT ON THE FREQUENCY AND THE VELOCITY OF PROPAGATION OF"
90 PRINT"THE TYPE OF LINE USED. THE FORMULA IS (492)(Vel)/(Fmhz) FEET FOR A"
100 PRINT"HALF WAVE STUB."
110 PRINT:PRINT"VELOCITY FACTOR TYPES"
115 print
120 PRINT " .66 RG-8A/U, RG-58A/U, RG-59A/U, RG-11A/U"
125 print " .75 RG-8X or 'mini-8' "
130 PRINT " .79 RG-58/U, RG-59/U"
140 PRINT " .80 RG-8/U, 300 OHM TUBULAR"
150 PRINT " .82 or .83 300 OHM TWIN LEAD (indoor non-foam type)"
160 PRINT " .95 450-ohm ladder line"
170 PRINT:INPUT"FREQUENCY IN MHZ ";MHZ
180 INPUT"VELOCITY FACTOR ";VP
190 L=(492*VP)/MHZ
200 PRINT"THE LENGTH OF A QUARTER WAVE STUB IS ";:PRINT USING"###.#";L/2;:PRINT" FEET (";:print using"###.###";L/(2*3.28);:print" meters)"
210 PRINT"THE LENGTH OF A HALF WAVE STUB IS ";:PRINT USING"###.#";L;:PRINT" FEET (";:print using"###.###";L/3.28;:print" meters)"
220 PRINT
230 print:input"to print this page, hit <PrtSc>; to continue, hit <cr>", dummy
350 print:print"[SPACE BAR]"
360 A$=INKEY$:IF A$=CHR$(32) THEN 380
370 GOTO 360
380 CLS
390 PRINT:PRINT:PRINT:PRINT"SELECT"
400 PRINT:PRINT"1....................DO ANOTHER"
420 PRINT:PRINT"2....................RETURN TO MS-DOS"
430 INPUT S
440 ON S GOTO 455,480
450 GOTO 380
455 CLS:PRINT:GOTO 110
480 CLS:LOCATE 12,1:PRINT"ARE YOU SURE? (Y)es/(N)o"
490 A$=INKEY$:IF A$="" THEN 490
500 IF A$= "Y" or A$="y" THEN CLS:SYSTEM
510 GOTO 390